<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: url("hai.jpg");
            background-size: cover;
        }

        .navbar {
            width: 100%;
            height: 50px;
            background-color: #333;
            box-shadow: 0 -2px 2px #000;
            margin-top: 300px;
        }

        .navbar ul {
            list-style: none;
        }

        .navbar ul li {
            float: left;
            width: 150px;
            height: 50px;
            background: #222;
            margin-right: 1px;
            font-size: 14px;
        }

        .navbar ul li ul li {
            display: none;
            width: 150px;
            height: 50px;
            float: initial;
            background: rgba(1, 163, 164, 1);
            font-size: 10px;
        }

        .navbar ul li:hover ul li {
            display: block;
            border-top: 1px solid rgba(72, 219, 251, 0.5)
        }
    </style>
</head>

<body>
    <div class="navbar">
        <ul>
            <li><a href="#">homepage</a>
                <ul>
                    <li><a href="#">homepage1</a></li>
                    <li><a href="#">homepage2</a></li>
                    <li><a href="#">homepage3</a></li>
                    <li><a href="#">homepage4</a></li>
                </ul>
            </li>
            <li><a href="#">products</a>
            <li><a href="#">about</a>
            <li><a href="#">feedback</a>
            <li><a href="#">email</a>
        </ul>
    </div>
</body>

</html>